package com.ruoyi.openDoor.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.openDoor.mapper.BusinessRoomDurationMapper;
import com.ruoyi.openDoor.domain.BusinessRoomDuration;
import com.ruoyi.openDoor.service.IBusinessRoomDurationService;

/**
 * 商家的包间的时长Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-06
 */
@Service
public class BusinessRoomDurationServiceImpl implements IBusinessRoomDurationService 
{
    @Autowired
    private BusinessRoomDurationMapper businessRoomDurationMapper;

    /**
     * 查询商家的包间的时长
     * 
     * @param id 商家的包间的时长主键
     * @return 商家的包间的时长
     */
    @Override
    public BusinessRoomDuration selectBusinessRoomDurationById(Long id)
    {
        return businessRoomDurationMapper.selectBusinessRoomDurationById(id);
    }

    /**
     * 查询商家的包间的时长列表
     * 
     * @param businessRoomDuration 商家的包间的时长
     * @return 商家的包间的时长
     */
    @Override
    public List<BusinessRoomDuration> selectBusinessRoomDurationList(BusinessRoomDuration businessRoomDuration)
    {
        return businessRoomDurationMapper.selectBusinessRoomDurationList(businessRoomDuration);
    }

    /**
     * 新增商家的包间的时长
     * 
     * @param businessRoomDuration 商家的包间的时长
     * @return 结果
     */
    @Override
    public int insertBusinessRoomDuration(BusinessRoomDuration businessRoomDuration)
    {
        return businessRoomDurationMapper.insertBusinessRoomDuration(businessRoomDuration);
    }

    /**
     * 修改商家的包间的时长
     * 
     * @param businessRoomDuration 商家的包间的时长
     * @return 结果
     */
    @Override
    public int updateBusinessRoomDuration(BusinessRoomDuration businessRoomDuration)
    {
        return businessRoomDurationMapper.updateBusinessRoomDuration(businessRoomDuration);
    }

    /**
     * 批量删除商家的包间的时长
     * 
     * @param ids 需要删除的商家的包间的时长主键
     * @return 结果
     */
    @Override
    public int deleteBusinessRoomDurationByIds(Long[] ids)
    {
        return businessRoomDurationMapper.deleteBusinessRoomDurationByIds(ids);
    }

    /**
     * 删除商家的包间的时长信息
     * 
     * @param id 商家的包间的时长主键
     * @return 结果
     */
    @Override
    public int deleteBusinessRoomDurationById(Long id)
    {
        return businessRoomDurationMapper.deleteBusinessRoomDurationById(id);
    }
}
